package ch6;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class InputEven {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        //要输入一个大于6的偶数
        System.out.print("请输入一个数：");
        int a =0;
        while (!(a % 2 == 0 && a > 6)) {
            System.out.println("请继续输入");
            a = in.nextInt();
        }
        System.out.println("输入成功" + a);
    }
}
